
package cn.hz.camel;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ScheduledExecutorService;

 

public class MzFactory  {
 
	
	public static MzClientInput genClientInput(String key,String url,String user,String psw,MzHandle mzhandle){
		MysqlClient sqlCli=new MysqlClient();
		sqlCli.setUrl(url);
		sqlCli.setUser(user);
		sqlCli.setPsw(psw);
		sqlCli.setKey(key);
		mzhandle.setInClient(sqlCli);
		MysqlClient sqlOutCli=new MysqlClient();
		sqlOutCli.setUrl(MzCfg.DB_URL);
		sqlOutCli.setUser(MzCfg.DB_USER);
		sqlOutCli.setPsw(MzCfg.DB_PASSWORD);
		sqlOutCli.setKey("Out");
		mzhandle.setInClient(sqlCli);
		mzhandle.setOutClient(sqlOutCli);
		
		MzClientInput cli=new MzClientInput();
		cli.setInHandle(mzhandle);
		cli.setKey(key);
		return cli;
	    
	}
	
	

	 public static MzClientOutput genClientOutput(){
		 MzClientOutput cli=new MzClientOutput();
		 return cli;
	 }
	
}
